package cn.saltybe.analysis.controller.api;

import cn.saltybe.analysis.util.ApiResponse;
import com.geccocrawler.gecco.GeccoEngine;
import com.geccocrawler.gecco.annotation.Gecco;
import com.geccocrawler.gecco.request.HttpGetRequest;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;

@RestController
@RequestMapping(value = "/api")
public class GeneralAPI {
    @ResponseBody
    @GetMapping("")
    public static String index(HttpServletResponse response) {
        return ApiResponse.buildSuccessResponse().toString();
    }
}
